﻿<demo:ViewBase x:Class="Ultimate.Shell.Views.UnauthorisedView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:demo="http://schemas.ultimatedemo.com/2012/xaml/presentation"
    xmlns:ultimate="http://schemas.ultimatenavigationframework.com/2011/xaml/presentation"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="368*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="509*" />
        </Grid.ColumnDefinitions>
        <TextBlock Name="txtErrorMessageHeader"
                   Text="You are not authorised to access the requested page."
                   Grid.Column="1"
                   FontSize="24"
                   VerticalAlignment="Center"
                   Margin="4" />
        <Rectangle Height="1"
                   Grid.Column="1"
                   HorizontalAlignment="Stretch"
                   VerticalAlignment="Bottom"
                   Stroke="Gray"
                   Margin="4,0" />
        <ScrollViewer Grid.Column="1"
                      Grid.Row="1"
                      VerticalScrollBarVisibility="Auto"
                      BorderThickness="0">
            <StackPanel Name="pnlStack"
                        Margin="4">
                <StackPanel.Resources>
                    <Style TargetType="TextBlock">
                        <Setter Property="FontSize"
                                Value="12" />
                        <Setter Property="Margin"
                                Value="4" />
                        <Setter Property="HorizontalAlignment"
                                Value="Left" />
                        <Setter Property="TextWrapping"
                                Value="Wrap" />
                    </Style>
                </StackPanel.Resources>

                <TextBlock Name="txtErrorMessage"
                           Text="You are currently not authoried to access the requested page." />

                <TextBlock Name="txtErrorHelp"
                           Text="If this problem persists, please contact the support team." />

                <Grid Margin="25,0,0,0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <TextBlock  Name="txtRequestedUri"
                                Margin="0,4,4,4"
                                FontWeight="Bold">
                        <Run Text="Requested Uri: " />
                        <Run Text="{Binding RequestedUri}" />
                    </TextBlock>
                </Grid>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</demo:ViewBase>
